diff options
| author | Adam Soltys <[email protected]> | 2026-02-04 12:42:42 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 15:34:19 -0800 |
| commit | 78c201d8d9d2f3ec07f6ea36201977846e29ccd9 (patch) | |
| tree | 413d697c2cfa9d3e867c791e161183bad958ed86 /src/routes/(app)/send/lightning/[payreq] | |
| parent | 882c3bd3fd01b6001172c61e0d2227d962254c62 (diff) | |
| download | coinos-ui-78c201d8d9d2f3ec07f6ea36201977846e29ccd9.tar.gz coinos-ui-78c201d8d9d2f3ec07f6ea36201977846e29ccd9.zip | |
homepage design and currency toggling
Diffstat (limited to 'src/routes/(app)/send/lightning/[payreq]')
| -rw-r--r-- | src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte b/src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte index bc9e72b6..4dfaabc2 100644 --- a/src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte +++ b/src/routes/(app)/send/lightning/[payreq]/[...memo]/+page.svelte @@ -7,7 +7,7 @@ import Spinner from "$comp/Spinner.svelte"; import { page } from "$app/stores"; import { loc, back, toFiat, f, s, focus } from "$lib/utils"; - import { rate, pin } from "$lib/store"; + import { fiat, rate, pin } from "$lib/store"; let { data, form } = $props(); @@ -64,10 +64,13 @@ <div class="flex flex-wrap gap-4 justify-center"> <div class="my-auto"> - <h2 class="text-xl"> - {f(toFiat(ourfee, $rate), currency)} - </h2> - <h3 class="text-secondary">⚡️{s(ourfee)}</h3> + {#if $fiat} + <h2 class="text-xl"> + {f(toFiat(ourfee, $rate), currency)} + </h2> + {:else} + <h3 class="text-secondary">⚡️{s(ourfee)}</h3> + {/if} </div> </div> </div> |
